﻿@model IEnumerable<QuanLyGiaoVuUI.Models.LopMonHoc.LopMonHocViewModel>

@{
    ViewBag.Title = "DanhSachLopMo";
    //Layout = "~/Views/Shared/_LayoutGiangVienClient.cshtml";
    Layout = null;
}


<div>
    <!--  start page-heading -->

    <div id="page-heading">
        <h2>DANH SÁCH NHỮNG LỚP ĐƯỢC MỞ</h2>
        <h2> @{Html.RenderAction("HocKyHienTai", "Common");}</h2>
    </div>
    <!-- end page-heading -->
    <table class="gridtable" cellspacing="0" border="1" bordercolor="#000000" width="100%">
        <tr>
            <th>STT
            </th>
            <th>
                @Html.DisplayNameFor(model => model.MaLopMonHoc)
            </th>
            <th>
                Tên Môn học
            </th>
            <th>
                @Html.DisplayNameFor(model => model.MaGiangVien1)
            </th>
            <th>
                Họ tên giảng viên 1
            </th>
            <th>
                @Html.DisplayNameFor(model => model.MaGiangVien2)
            </th>
            <th>
                Họ tên giảng viên 2
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SiSoToiDa)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LoaiLop)
            </th>
            
            <th>
                @Html.DisplayNameFor(model => model.GhiChu)
            </th>            
        </tr>
    @{int i=0;}
    @foreach (var item in Model) {
        <tr>
            <td>
                @(i++)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.MaLopMonHoc)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.MonHoc.TenMonHoc)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.GiangVien1.MaGiangVien)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.GiangVien1.HoTenGV)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.GiangVien2.MaGiangVien)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.GiangVien2.HoTenGV)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SiSoToiDa)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LoaiLopMonHoc.TenLoaiLopMonHoc)
            </td>            
            <td>
                @Html.DisplayFor(modelItem => item.GhiChu)
            </td>            
        </tr>
    }
    
    </table>
</div>

